function makePlot()

load('missileSwarm.txt');
load('snake.txt');
load('snakeBasic.txt');

snakeBasicBase = (2400630 + 6731 + 20811 + 72855 + 4152) / 3449310;
snakeBase = (2364972 + 11454 + 35410 + 61627 + 2519 + 340 + 1171) / 3449310;
missileSwarmBase = (1576880 + 783 + 32783 + 176 + 25374) / 1999220;

maxLookahead = 20;
snake = snake(1:maxLookahead);
snakeBasic = snakeBasic(1:maxLookahead);
missileSwarm = missileSwarm(1:maxLookahead);

h_fig = figure;
set(h_fig, 'Position', [100, 100, 800, 600]);

h_plot = plot(1:maxLookahead, [snake'; snakeBasic'; missileSwarm']);
set(h_plot, 'LineWidth', 4);

get(h_fig)

hold on;
baseData = ones(maxLookahead, 3) * diag([snakeBase, snakeBasicBase, missileSwarmBase]);
h_base_plot = plot(1:maxLookahead, baseData, '--');
set(h_base_plot, 'LineWidth', 2);

h_legend = legend('Snake', ...
    'Single Level Snake', ...
    'DodgeTheMissile', ...
    'Snake (alwayws predict background)', ...
    'Single Level Snake (always predict background)', ...
    'DodgeTheMissile (always predict background)');
set(h_legend, 'FontSize', 16);
set(h_legend, 'Location', 'Best');

title('Prediction rate vs frame lookahead', 'FontSize', 24);

xlabel('Frame lookahead', 'FontSize', 18);
ylabel('Prediction rate', 'FontSize', 18);

set(gca, 'FontSize', 16);

end